
from google.appengine.ext import db

class UnitModel(db.Model):

    name = db.StringProperty(required=True)
    label = db.StringProperty(required=True)
    unit_type = db.StringProperty(required=False,
                                    choices={"Gear", "Infantry", "Vehicle", "Strider", "Vehicle", "Tank", "Spider"})
    move_val = db.IntegerProperty(required=False)
    move_type = db.StringProperty(required=False,
                                  choices={"W", "G", "H"})
    armor = db.IntegerProperty(required=False)

    damage = db.StringProperty(required=False)

    actions = db.IntegerProperty(required=False)
    attack = db.IntegerProperty(required=False)
    defense = db.IntegerProperty(required=False)
    ew = db.IntegerProperty(required=False)
    ranged = db.ListProperty(db.Key, default=None)
    melee = db.ListProperty(db.Key, default=None)
    traits = db.ListProperty(db.Key, default=None)
    image = db.StringProperty(required=False)
    '''
    parent
    variants
    '''

